home *** CD-ROM | disk | FTP | other *** search
Wrap
<html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title>Slide Show action</title> <meta name="generator" content="Adobe GoLive 5"> </head> <body bgcolor="white"> <center> <font size="6">SlideShow Action 1.0</font> <p>© 1999, Adobe Systems Incorporated<br> All rights reserved.</p> <p>Script by Cédric Ménard</p> <hr> </center> <csactionclass name="SlideShow" function="CSSlideShow" nsversion="3" ieversion="4"> <csactionparam name="image" type="GLActionImageParam"></csactionparam> <csactionparam name="nombre" type="GLActionNumParam"></csactionparam> <csactionparam name="inverse" type="GLActionBoolParam"></csactionparam> <csactionparam name="isloop" type="GLActionBoolParam"></csactionparam> <csactionparam name="palin" type="GLActionBoolParam"></csactionparam> </csactionclass> <p>IE Stuff <script language="JavaScript1.2" src="../GlobalScripts/IE.scpt"></script> </p> <p>CSSlideShow <script language="JavaScript1.2"><!-- // Script copyright 1999, Adobe Systems Incorporated. All rights reserved. SSnumimg=1; SSsens2=-1;SSsens3=-1 function CSSlideShow(action) { SSmax=action[2] SSimgNom=action[1] SSloop=action[4] SSsens=action[3] SSpalin=action[5] var SSimg = null; if (document.images) { if (!IsIE()) SSimg = CSFindElement(SSimgNom,0); else SSimg = document.images[SSimgNom]; SSstr=SSimg.src SSn=SSstr.length SSp=SSn-6 SSpstr=SSstr.substring(0,SSp) SSnimg=SSstr.substring(SSp,SSp+2) SSformat=SSstr.substring(SSp+2,SSn) if (SSformat==".jpg" || SSformat==".JPG" || SSformat==".gif" || SSformat==".GIF") {} else { alert("Image extension must be .jpg or .gif (case sensitive). Images must be numbered 01, 02 ...") } slide(SSmax,SSformat,SSpstr,SSnimg,SSimgNom,SSloop,SSpalin) } } function slide(SSmax,SSformat,SSpstr,SSnimg,SSimgNom,SSloop,SSpalin) { if (SSsens2==true) {SSsens=true} if (SSsens2==false) {SSsens=false} if (SSsens==true) { SSsuite=SSnumimg-1 if (SSnumimg>SSmax)SSsuite=SSmax if (SSnumimg<=1 & SSloop==true & SSpalin!=true) { SSsuite=SSmax } if (SSnumimg<=1 & SSloop==true & SSpalin==true) { if (SSsens2==-1 & SSsens3==-1) {SSsuite=SSmax;SSsens3=1} else { SSsuite=SSnumimg+1; SSsens2=false }} if (SSnumimg<=1 & SSloop!=true & SSpalin!=true) { if (SSsens2==-1 & SSsens3==-1) { SSsuite=SSmax;SSsens3=1 } else {SSsuite=SSnumimg; SSfini()}} } else { SSmax=SSmax-1 SSsuite=SSnumimg+1 if (SSnumimg>SSmax & SSloop==true & SSpalin!=true) { SSsuite=1} if (SSnumimg>SSmax & SSloop==true & SSpalin==true) {SSsuite=SSnumimg-1; SSsens2=true } if (SSnumimg>SSmax & SSloop!=true & SSpalin!=true) { SSsuite=SSnumimg;SSfini() } if (SSnumimg<1) SSsuite=1 } SSnumimg=SSsuite if (SSsuite<10) { SSaller="0"+SSsuite } else SSaller=SSsuite SSsource=SSpstr+SSaller+SSformat var SSimg = null; if (document.images) { if (!IsIE()) SSimg = CSFindElement(SSimgNom,0); else SSimg = document.images[SSimgNom]; if (SSimg) SSimg.src = SSsource; } } function SSfini() { } // --> </script> </p> <table cool width="221" height="255" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee"> <tr height="6"> <td width="4" height="254" rowspan="10"><spacer type="block" width="4" height="254"></td> <td width="76" height="9" colspan="2" rowspan="2"><spacer type="block" width="76" height="9"></td> <td width="140" height="6" colspan="2"><spacer type="block" width="140" height="6"></td> <td width="1" height="6"><spacer type="block" width="1" height="6"></td> </tr> <tr height="3"> <td width="140" height="24" colspan="2" rowspan="2" valign="top" align="left" xpos="80"> <csactioncntrl name="image" x="80" y="6" width="136" height="18" alignx="scale" aligny="top"> </td> <td width="1" height="3"><spacer type="block" width="1" height="3"></td> </tr> <tr height="21"> <td width="76" height="21" colspan="2" valign="top" align="left" xpos="4"> <csactioncntrl type="InfoText" value="Base Image" x="4" y="9" width="69" height="15" alignx="left" aligny="top"> </td> <td width="1" height="21"><spacer type="block" width="1" height="21"></td> </tr> <tr height="1"> <td width="96" height="1" colspan="3"><spacer type="block" width="96" height="1"></td> <td width="120" height="27" rowspan="2" valign="top" align="left" xpos="100"> <csactioncntrl name="nombre" x="100" y="30" width="28" height="17" alignx="left" aligny="top"> </td> <td width="1" height="1"><spacer type="block" width="1" height="1"></td> </tr> <tr height="26"> <td width="96" height="26" colspan="3" valign="top" align="left" xpos="4"> <csactioncntrl type="InfoText" value="Number of images" x="4" y="31" width="91" height="15" alignx="left" aligny="top"> </td> <td width="1" height="26"><spacer type="block" width="1" height="26"></td> </tr> <tr height="22"> <td width="26" height="22" valign="top" align="left" xpos="4"> <csactioncntrl name="isloop" x="4" y="57" width="20" height="17" alignx="left" aligny="top"> </td> <td width="190" height="22" colspan="3" valign="top" align="left" xpos="30"> <csactioncntrl type="InfoText" value="Loop" x="30" y="57" width="74" height="15" alignx="left" aligny="top"> </td> <td width="1" height="22"><spacer type="block" width="1" height="22"></td> </tr> <tr height="2"> <td width="26" height="2"><spacer type="block" width="26" height="2"></td> <td width="190" height="19" colspan="3" rowspan="2" valign="top" align="left" xpos="30"> <csactioncntrl type="InfoText" value="Palindrome" x="30" y="79" width="73" height="16" alignx="left" aligny="top"> </td> <td width="1" height="2"><spacer type="block" width="1" height="2"></td> </tr> <tr height="17"> <td width="26" height="17" valign="top" align="left" xpos="4"> <csactioncntrl name="palin" x="4" y="80" width="20" height="16" alignx="left" aligny="top"> </td> <td width="1" height="17"><spacer type="block" width="1" height="17"></td> </tr> <tr height="25"> <td width="26" height="25" valign="top" align="left" xpos="4"> <csactioncntrl name="inverse" x="4" y="98" width="20" height="17" alignx="left" aligny="top"> </td> <td width="190" height="25" colspan="3" valign="top" align="left" xpos="30"> <csactioncntrl type="InfoText" value="Play backwards" x="30" y="98" width="75" height="16" alignx="left" aligny="top"> </td> <td width="1" height="25"><spacer type="block" width="1" height="25"></td> </tr> <tr height="131"> <td width="216" height="131" colspan="4" valign="top" align="left" xpos="4"> <csactioncntrl type="InfoText" value="Images must be numbered 01, 02, 03, etc, with a .gif or .jpg extension. All images in the slide show must be located in the same folder as the base image." x="4" y="123" width="212" height="128" alignx="scale" aligny="scale"> </td> <td width="1" height="131"><spacer type="block" width="1" height="131"></td> </tr> <tr height="1" cntrlrow> <td width="4" height="1"><spacer type="block" width="4" height="1"></td> <td width="26" height="1"><spacer type="block" width="26" height="1"></td> <td width="50" height="1"><spacer type="block" width="50" height="1"></td> <td width="20" height="1"><spacer type="block" width="20" height="1"></td> <td width="120" height="1"><spacer type="block" width="120" height="1"></td> <td width="1" height="1"><spacer type="block" width="1" height="1"></td> </tr> </table> </body> </html>